﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsStateService.Data
{
    public class PropertiesConfig
    {
        public PropertiesConfig() { }

        public string DataPath { get;set; }

        public CacheRule CacheType {get;set; }
    }

    public enum CacheRule
    {
        [Display("保留30天数据")]
        ThirtyDays = 0,
        [Display("保留1G数据")]
        OneG = 1
    }

    public class DisplayAttribute : Attribute
    {
        public string Display { get; private set; }
        public DisplayAttribute(string value)
        {
            Display = value;
        }
    }
}
